home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
stats
/
mathx30.exe
/
FINANCE.APR
< prev
next >
Wrap
Text File
|
1991-07-20
|
8KB
|
327 lines
|FINANCE.APR file, Copyright 1991 by David Denker|
if h'''=1}10
dsp;
DISCLAIMER!
Even though I have tested all calculations and believe them
to be accurate, I do not guarantee their accuracy. Your use of
the information provided by this program is at your own risk.
If you are using this program to make important decisions, I
suggest you also consider contacting a financial planning
professional.
Hit any key to continue.;
wait50
#10
h'''=1
i=sloc:if i=0}1:CALL7:GO4
call7:goto4
#1
digr6:digl6:boff:xoff:aon
#3:cls
DSP ;
Amortization table. (can be printed)
Balance of loan payoff.
Compound interest
Effective earnings percentage rate.
Loan interest rate. (from No. of payments and amount)
Payments. (from Int. rate, Loan value & No. payments)
Quit.
Savings table. (can be printed)
SELECT BY THE FIRST LETTER: ;
I=KYIN:if i=27}q:CALL7
#4
if j=1}100
IF J=2}600
IF J=3}610
if j=4}150
if j=5}200
if j=6}300
if j=7}q
if j=8}400
go3
#7:if i>64}}if i<91}}i=i+32:if i>96}}if i<123}}k=i-97
#8:j=data k{1,2,3,0,4,0,0,0,0,0,0,5,0,0,0,6,7,0,8,0,0,0,0,0,0,0}:ret
#40
dsp n; Do you want a printout? (Y/N) ;:$p=inp
if $p=;Y;}41,if $p=;YES;}41:ret
#41
pon:dsp N; Is the printer on? (Y/N) ;:$p=inp
if $p=;Y;}r:if $p=;YES;}r:poff:ret
#80
dsp nn; "M"enu, "R"edo, else quit! ;:i'=kyin:cls
if i'=77}1:if i'=109}1:if i'=82}4:if i'=114}4:quit
#90
i'=-1
DSP n; Enter interest rate %: ;:i'=inp
if i'=-1}r:if i'<0}91:i'=i'*.01
dsp n; Enter total number of payments: ;:t'=inp
if t'<1}91
dsp n; Enter number of payments per year: ;:n''=inp
if n''<1}91
dsp n; Enter loan value: ;:v'=inp
if v'=<0}91
p'=v'/((1-((1+i'/n'')^-t'))/(i'/n''))
ret
#91
i'=-2:ret
#100:cls:XOFF
DSP N; AMORTIZATION TABLE:;N
call90:if i'=-1}1:if i'=-2}510:call40
n''=1:y''=1:r''=v':p''=0:i''=0:p'''=0:i'''=0
digl7:digr2:n'=1
dprn nn; Monthly payment = ;(p');
Payment Amount to Amount to Principal Interest Principal
number Principal Interest to date to date remaining
;n
#103
if y''=y'''}104:digr0:digl3:dprn; Year;(y'')n:y'''=y''
#104
digr0:digl5:dprn (n'):n'=n'+1:n''=n''+1
digl7:digr2
i''=r''*i'/12:p''=p'-i'':p'''=p'''+p'':i'''=i'''+i'':r''=r''-p''
digl5
dprn(p'')(i'')
digl8:dprn(p''')(i''')(r'')n
if n''=13}}y''=y''+1:if n''=13}}n''=1
if n'<t'+1}103
goto80
#150
cls:s'=-99:xoff
dsp n; EFFECTIVE EARNINGS RATE:;
dsp nn; Enter starting balance:;:s'=inp
if s'=-99}1:if s'=0}520:if s'<0}520
dsp n; Enter ending balance: ;:e'=inp
if e'<0}520
dsp n; Enter deposits made: ;:d'=inp
if d'<0}520
dsp n; Enter No. of days involved: (Yr.=365) ;:y'=inp
if y'=<0}520
m'=e'-s'-d':i=m'/s':c'=4
#151
m'=e'-s'-d'-d'/2*i:i=m'/s':c'=c'-1:if c'<>0}151
digr2:digl4
dsp n;
Effective Earnings Percentage Rate = ;(i*100);%
Effective Yearly Percentage Rate = ;(i/y'*365*100);%;n
goto80
#200
cls:n'=0:xoff
DSP N; LOAN INTEREST RATE:;N
dsp n; Enter total number of payments: ;:n'=inp
if n'<0}530:if n'=0}1
dsp n; Enter number of payments per year: ;:n''=inp
if n''=<0}530
dsp n; Enter amount of each payment: ;:p'=inp
t'=p':if p'=<0}530
dsp n; Enter loan amount: ;:p''=inp
if p''=<0}530:c'=5
#201
i'=(n''*2*(p'*n'-p''))/(p''*(n'+1))
if c'=0}205:c'=c'-1
p'''=p''/((1-((1+i'/n'')^-n'))/(i'/n''))
p'=p'-(p'''-t')*.58:goto201
#205
digr2:digl2:dprn nn; Loan interest rate = ;(i'*100);%;
goto80
#300
digr2:digl7
cls
DSP N; PAYMENTS for Loan:;N
call90:if i'=-1}1:if i'=-2}540:digr2
dsp nn; Monthly payment = ;(p')
goto80
#400:cls
xoff:digr2:koff:b'=-1
dsp n; SAVINGS ACCOUNT TABLE:;
dsp nn; Enter starting balance: ;:b'=inp
if b'=-1}1:if b'<0}550
dsp n; Enter interest rate: ;:i'=inp
if i'<0}550:i'=i'*.01
dsp n; Enter number of years: ;:y''=inp
if y''<1}550
#401
dsp n; Enter interest compound rate:
"Y"early
"S"emi-annually
"Q"uarterly
"M"onthly
"D"aily
Select by the first letter: ;
$r=inp(1):i''=0
if $r="Y"}}i''=1
if $r="S"}}i''=2
if $r="Q"}}i''=4
if $r="M"}}i''=12
if $r="D"}}i''=365
if i''<>0}402:beep:goto401
#402:
i=i'/i''
dsp n; Enter deposit rate:
"N"one
"Y"early
"M"onthly
"W"eekly ;n
#403:$c=inp(1):r'=0
if $c="N"}}r'=400
if $c="Y"}}r'=366
if $c="M"}}r'=32
if $c="W"}}r'=8
if r'<>0}406:beep:goto403
#406
c'=0:if $c="N"}407
dsp n; Enter deposit amount: ;:c'=inp
if c'<0}550
#407
dsp nn; Enter table print and/or display period:
"E"nding ballance only
"Y"early ballance
"M"onthly ballance
"W"eekly ballance
Select by the first letter: ;
$p=inp(1):p'=0
if $p="E"}}p'=400
if $p="Y"}}p'=366
if $p="M"}}p'=32
if $p="W"}}p'=8
if p'<>0}411:beep:goto407
#411
$p=;1 Week;:if p'=8}412
$p=;1 Month;:if p'=32}412
$p=;1 Year;
#412
dsp n; Do you want a printout? (Y/N) ;:$a=inp(1)
if $a<>"Y"}415
dsp n; Is the printer on? (Y/N) ;:$a=inp(1):if $a<>"Y"}415
pon
#415
i'''=0:c''=0:q'=91:y'=1:p''=1:m'=32:n'=1:x''=0:m'''=1:q'''=1:m''=1:q''=1
t'=0:t''=0:d'=1:n''=1:n'''=1:b''=0:if p'=400}416
dprn nn;
Starting Balance = ;(b');
Interest rate = ;(i'*100);%
Each period = ;$p;
Interest Deposits
Period Interest Deposit to date to date Balance;n
goto420
| p'' i''' c'' t' t'' b' |
#416
dprn nn;
Starting Balance = ;(b');
Interest rate = ;(i'*100);%
Total Total Ending
Interest Deposits Balance;n
GOTO420
#417
if i''=365}449
if i''=12}}if n'=m'}450
if i''=4}}if n'=q'}450
if i''=2}}if n'=182}450
if i''=1}}if n'=366}450
#420
if r'=n''}c452:if n'''=p'}c465
if m'<>m''}422:m'''=m'''+1:if m'''=13}}m'''=1
m'=data m'''{0,32,29,32,31,32,31,32,32,31,32,31,32}
if p'>27}}if p'<33}}p'=m':m''=1
#422
if q'<>q''}424:q'''=q'''+1:if q'''=5}}q'''=1
q'=data q'''{0,91,92,93,93}
#424
n'=n'+1:n''=n''+1:m''=m''+1:q''=q''+1:d'=d'+1:n'''=n'''+1
if d'<>367}417:d'=2:n''=1:p''=1
if n'''>365}}n'''=1:if y'=>y''}430:y'=y'+1:goto417
#430:if p'=400}c470:goto80
#449
b'=b'+b'':b''=0
#450
z'=b'*i+x'':b'=b'+z'+b'':i'''=i'''+z':n'=1:x''=0:b''=0:goto420
#452
b''=b''+c':c''=c''+c':if i''=365}460
if i''<>12}454:x'=m'-n':goto459
#454
if i''<>4}456:x'=q'-n':goto459
#456
if i''<>2}458:x'=182-n':goto459
#458
x'=366-n'
#459
x''=x''+x'*(i'/365)*c'
#460
n''=1:ret
#465
t'=t'+i''':t''=t''+c''
if p''<>1}466:digl3:digr0:dprn; Year;(y')n
#466
digr0:digl2
dprn (p'')
digr2:digl8
dprn(i'''):digl6
dprn(c''):digl8
dprn(t'):digl7
dprn(t''):digl9
dprn(b'+b'')n
p''=p''+1:n'''=1:c''=0:i'''=0
ret
#470
t'=t'+i''':t''=t''+c''
digr2:digl9:dprn (t')(t'')(b')n
ret
#510
CALL511:wait10:go100
#511
dsp nn; Note: Do not enter negitive numbers.
In some cases entering 0 is also not allowed.
;:RET
#520
CALL511:wait10:go150
#521
dsp nn; Note: Do not enter negitive numbers or 0
;:RET
#530
CALL521:wait10:go200
#540
CALL521:wait10:go300
#550
CALL511:wait10:go400
#555
CALL521:WAIT10:GO600
#560
CALL521:WAIT10:GO610
#600
CLS:n'=0:xoff
DSP N; BALANCE OF LOAN PAYOFF:;N
dsp n; Enter total number of payments left: ;:n'=inp
if n'<0}555:if n'=0}1
dsp n; Enter number of payments per year: ;:n''=inp
if n''=<0}555
dsp n; Enter amount of each payment: ;:p'=inp
if p'=<0}555
dsp n; Enter loan interest rate: ;:i''=inp
if i''=<0}555
i''=i''/100
p''=-P'*(1-((1+i''/n'')^n'))/(i''/n'')
digr2:digl8:dprn nn; BALANCE OF LOAN PAYOFF = ;(p'')
goto80
#610
CLS:n'=0:xoff
DSP N; COMPOUND INTEREST:;N
dsp n; Enter total number of years: ;:n'=inp
if n'<0}560:if n'=0}1
dsp n; Enter number of times compounded per year: ;:n''=inp
if n''=<0}560
dsp n; Enter starting balance: ;:p'=inp
if p'=<0}560
dsp n; Enter yearly interest rate: ;:i''=inp
if i''=<0}560
i''=i''/100
p''=P'*(1+I''/N'')^(N'*N'')
digr2:digl8:dprn nn; COMPOUND INTEREST = ;(p''-p')
dprn n; PLUS PRINCIPAL = ;(p'')
goto80